home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD-ROM Today - The Disc! 5
/
CD-ROM Today - The Disc (Issue 5)(November 1994).ISO
/
mac
/
Mac shareware
/
Education
/
RLaB
/
help
/
sort
< prev
next >
Wrap
Text File
|
1994-09-21
|
592b
|
23 lines
sort:
Syntax: sort ( A )
Description:
If A is a vector (either row or column):
Then sort returns a list, containing the sorted values and
indices. List element names are `val' and `ind'.
If A is a matrix (m >= 2):
Then sort returns a list, containing a matrix with the
sorted columns of A, and a matrix containing the sorted
indices of A.
Numerical matrices are sorted in ascending numerical value.
Complex matrices are sorted by absolute value.
String matrices are sorted alphabetically (using strcmp()).
The sort function uses a simplistic version of qsort().